package com.qingsong.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.qingsong.dto.SeckillInsertDTO;
import com.qingsong.dto.SeckillPageDTO;
import com.qingsong.dto.SeckillUpdateDTO;
import com.qingsong.entity.Seckill;
import com.qingsong.vo.SeckillSimpleListVO;
import java.util.List;

/**
 * 秒杀表 服务层。
 *
 * @author qingsong
 * @since 2024-12-22
 */
public interface SeckillService extends IService<Seckill> {


    boolean insert(SeckillInsertDTO dto);
    Seckill select(Long id);
    boolean update(SeckillUpdateDTO dto);
    boolean delete(Long id);
    boolean deleteBatch(List<Long> ids);
    List<SeckillSimpleListVO> simpleList();
    Page<Seckill> page(SeckillPageDTO dto);

    List<Seckill> top(Long n);
    List<Seckill> near(Long n);
}
